package com.casualgamers.proj1;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.SeekBar;

public class OptionsMenu extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.optionsmenu);
        
        initialize();

    }
	
	private void initialize() {
		// Initialize Interface Objects
    	Button  backButton = (Button)  findViewById(R.id.OptionsMenuBackButton);
    	SeekBar brightBar  = (SeekBar) findViewById(R.id.OptionsMenuBrightnessBar);
    	SeekBar musicBar   = (SeekBar) findViewById(R.id.OptionsMenuMusicBar);
    	SeekBar soundFXBar = (SeekBar) findViewById(R.id.OptionsMenuFXBar);
        
        
    	// Set listeners
    	backButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick (View v) {	
        		Intent myIntent = new Intent(((Context) OptionsMenu.this), TitleScreen.class);
				((Context) OptionsMenu.this).startActivity(myIntent);
        	}
        });
	}
	
}
